package com.example.maxboxtwo.components.fragments;


import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.example.maxboxtwo.R;
import com.example.maxboxtwo.utils.listeners.ComponentSelectorListener;

public class Onefragment extends Fragment {
    private ImageView one;
    private ImageView two;
    private ImageView three;
    private ImageView four;
    private ImageView five;
    private ImageView six;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
         View view = inflater.inflate(R.layout.layout_one,null);
         one = (ImageView)view.findViewById(R.id.led);
         two = (ImageView)view.findViewById(R.id.twoBar);
        three = (ImageView)view.findViewById(R.id.trumpet);
        four = (ImageView)view.findViewById(R.id.horizontal);
        five = (ImageView)view.findViewById(R.id.compass);
        six = (ImageView)view.findViewById(R.id.light);
        addListeners();
        return view;
    }
    //  all buttons are added listeners
    public void addListeners(){
        one.setOnClickListener(new ComponentSelectorListener());
        two.setOnClickListener(new ComponentSelectorListener());
        three.setOnClickListener(new ComponentSelectorListener());
        four.setOnClickListener(new ComponentSelectorListener());
        five.setOnClickListener(new ComponentSelectorListener());
        six.setOnClickListener(new ComponentSelectorListener());
    }
}
